package com.nanhang.client;

import com.nanhang.entity.Order;
import com.nanhang.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "manager")
public interface OrderClient {

    @PostMapping("/order/save")
     R save(@RequestBody Order order);

    @PostMapping("/order/deleteone")
    R deleteone(@RequestBody Order order);

}
